package com.ruoyi.applet.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WeixinPayConfig {

    @Value("${wx.appId}")
    private String appId;

    @Value("${wx.secret}")
    private String secret;

    @Value("${wx.accessTokenhttps}")
    private String accessTokenUrl;

    @Value("${wx.webAccessTokenhttps}")
    private String webAccessTokenUrl;

    @Value("${wx.mchId}")
    private String mchId;

    @Value("${wx.mchKey}")
    private String mchKey;

    @Value("${wx.paySignKey}")
    private String paySignKey;

    @Value("${wx.tradeType}")
    private String tradeType;

    @Value("${wx.notifyUrl}")
    private String notifyUrl;

    @Value("${wx.uniformorder}")
    private String uniformorder;

    @Value("${wx.orderquery}")
    private String orderquery;

    public WeixinPayConfig() {
    }

    public WeixinPayConfig(String appId, String secret, String accessTokenUrl, String webAccessTokenUrl, String mchId, String mchKey, String paySignKey, String tradeType, String notifyUrl, String uniformorder, String orderquery) {
        this.appId = appId;
        this.secret = secret;
        this.accessTokenUrl = accessTokenUrl;
        this.webAccessTokenUrl = webAccessTokenUrl;
        this.mchId = mchId;
        this.mchKey = mchKey;
        this.paySignKey = paySignKey;
        this.tradeType = tradeType;
        this.notifyUrl = notifyUrl;
        this.uniformorder = uniformorder;
        this.orderquery = orderquery;
    }

    /**
     * 获取
     * @return appId
     */
    public String getAppId() {
        return appId;
    }

    /**
     * 设置
     * @param appId
     */
    public void setAppId(String appId) {
        this.appId = appId;
    }

    /**
     * 获取
     * @return secret
     */
    public String getSecret() {
        return secret;
    }

    /**
     * 设置
     * @param secret
     */
    public void setSecret(String secret) {
        this.secret = secret;
    }

    /**
     * 获取
     * @return accessTokenUrl
     */
    public String getAccessTokenUrl() {
        return accessTokenUrl;
    }

    /**
     * 设置
     * @param accessTokenUrl
     */
    public void setAccessTokenUrl(String accessTokenUrl) {
        this.accessTokenUrl = accessTokenUrl;
    }

    /**
     * 获取
     * @return webAccessTokenUrl
     */
    public String getWebAccessTokenUrl() {
        return webAccessTokenUrl;
    }

    /**
     * 设置
     * @param webAccessTokenUrl
     */
    public void setWebAccessTokenUrl(String webAccessTokenUrl) {
        this.webAccessTokenUrl = webAccessTokenUrl;
    }

    /**
     * 获取
     * @return mchId
     */
    public String getMchId() {
        return mchId;
    }

    /**
     * 设置
     * @param mchId
     */
    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    /**
     * 获取
     * @return mchKey
     */
    public String getMchKey() {
        return mchKey;
    }

    /**
     * 设置
     * @param mchKey
     */
    public void setMchKey(String mchKey) {
        this.mchKey = mchKey;
    }

    /**
     * 获取
     * @return paySignKey
     */
    public String getPaySignKey() {
        return paySignKey;
    }

    /**
     * 设置
     * @param paySignKey
     */
    public void setPaySignKey(String paySignKey) {
        this.paySignKey = paySignKey;
    }

    /**
     * 获取
     * @return tradeType
     */
    public String getTradeType() {
        return tradeType;
    }

    /**
     * 设置
     * @param tradeType
     */
    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    /**
     * 获取
     * @return notifyUrl
     */
    public String getNotifyUrl() {
        return notifyUrl;
    }

    /**
     * 设置
     * @param notifyUrl
     */
    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    /**
     * 获取
     * @return uniformorder
     */
    public String getUniformorder() {
        return uniformorder;
    }

    /**
     * 设置
     * @param uniformorder
     */
    public void setUniformorder(String uniformorder) {
        this.uniformorder = uniformorder;
    }

    /**
     * 获取
     * @return orderquery
     */
    public String getOrderquery() {
        return orderquery;
    }

    /**
     * 设置
     * @param orderquery
     */
    public void setOrderquery(String orderquery) {
        this.orderquery = orderquery;
    }

    public String toString() {
        return "WeixinPayConfig{appId = " + appId + ", secret = " + secret + ", accessTokenUrl = " + accessTokenUrl + ", webAccessTokenUrl = " + webAccessTokenUrl + ", mchId = " + mchId + ", mchKey = " + mchKey + ", paySignKey = " + paySignKey + ", tradeType = " + tradeType + ", notifyUrl = " + notifyUrl + ", uniformorder = " + uniformorder + ", orderquery = " + orderquery + "}";
    }

    // 省略getter和setter方法
}